<script language="javascript">
{literal}
jQuery(document).ready(function() {
	jQuery("#created_time_from").datepicker();
	jQuery("#created_time_to").datepicker();
  });
</script>
{/literal}
<table width="100%" cellpadding="10" border="0">		
	<tr>
		<td colspan="8" bgcolor="#f0f0f0">
			<table cellpadding="5" border="0" width="100%">
				<tr>
					<td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#0000CC; font-size:14px"><strong><a href="admin_notice.html">Cảnh báo Thành viên</a> <a href="admin_notice.html?act=user&cmd=add">[Thêm mới]</a></strong></font></td>
					<td width="50%" align="right">
						<div>
							<strong>Thời gian (dd-mm-yyyy)</strong> từ ngày:
							<input type="text" name="created_time_from" id="created_time_from" value="{$created_time_from}" /> 
								tới 
							<input type="text" name="created_time_to" id="created_time_to" value="{$created_time_to}" />
						</div>
						<div style="margin-top:10px;">
							<span style="margin-right:10px">ID User: <input value="{$user_id}" type="text" name="user_id" /></span>
							<span>Tên đăng nhập: <input value="{$user_name}" type="text" name="user_name" /></span>
						</div>
					</td>					
					<td width="10%"><input type="submit" name="search" value="Tìm kiếm" /></td>
				</tr>			
			</table>			
		</td>
	</tr>
	<tr>
		<td width="3%" align="center"><input onClick="selecte_all_checkbox('AdminNoticeUserForm');" name="chk_ids" type="checkbox" id="list_item_0" value="1" title="Chọn tất cả"></td>
		<td width="5%" align="center">
			<span>
				<input onclick="if(!confirm('Bạn có chắc muốn xóa không?'))return false;" type="submit" name="del_all" id="del_all" value="Xóa Chọn" title="Xóa tất cả"/>
			</span>			
		</td>
		<td align="center" width="7%"><strong>Thành viên</strong></td>
		<td  align="center"width="20%"><strong>Nội dung</strong></td>
		<td align="center" width="15%"><strong>Admin</strong></td>
		<td align="center" width="10%"><strong>Expire</strong></td>
		<td align="center" width="5%"><strong>Active</strong></td>
		<td align="center" width="8%"><strong>Thao tác</strong></td>
	</tr>
	{if $items}
	{foreach from=$items item=items}
	<tr bgcolor="{cycle values='#f0f0f0,#ffffff'}" id="{$items.id}">
		<td align="center"><input name="chk_id[]" type="checkbox" id="list_item_{$items.id}" value="{$items.id}"></td>
		<td colspan="2" align="left"><a href="{$items.user_name}" target="_blank">{$items.user_name}</a></td>
		<td>{$items.content}</td>
		<td>{if $items.add}{$items.add}{/if}{if $items.edit}<br />{$items.edit}{/if}</td>
		<td align="center">{$items.expire}</td>
		<td align="center">{if $items.active==1}<img src="style/images/admin/check.gif" title="Active" />{else}<img src="style/images/admin/delete1.gif" title="Chưa Active" / />{/if}</td>		
		<td align="center">
		  <a href="admin_notice.html?act=user&cmd=edit&id={$items.id}">
			<img src="style/images/admin/edit.gif" width="16" title="sửa" />
		  </a>&nbsp;
		 <a onclick="if(!confirm('Bạn có chắc muốn xóa không?'))return false;" href="admin_notice.html?act=user&cmd=delete&id={$items.id}">
			<img src="style/images/admin/delete_button.gif" title="Xóa" />
		  </a>
		</td>			
	</tr>	
	{/foreach}
	<tr><td colspan="8" align="left"><div class="product-list-paging" style="margin: 0px; padding: 0px;">{$paging}</div></td></tr>
	{else}
	<tr><td align="center" height="50" colspan="8" bgcolor="{cycle values='#f0f0f0,#ffffff'}"><strong>Chưa có thông tin nào cả</strong></td></tr>
	{/if}
</table>